package kr.hkit.powerjava.chapter14.work;

import javax.swing.JPanel;
import javax.swing.JLabel;
import javax.swing.JTextField;
import java.awt.FlowLayout;
import java.awt.BorderLayout;

public class InputPanel extends JPanel {
	private JLabel lbText;
	private JTextField inputField;
	private JLabel lblNewLabel;
	

	/**
	 * Create the panel.
	 */
	public InputPanel() {

		initialize();
	}
	private void initialize() {
		setLayout(new FlowLayout(FlowLayout.CENTER, 10, 5));
		
		lbText = new JLabel("입력하시오");
		add(lbText);
		
		lblNewLabel = new JLabel("               ");
		add(lblNewLabel);
		
		inputField = new JTextField();
		add(inputField);
		inputField.setColumns(5);
	}
	public String getInputField() {
		return inputField.getText();
	}
	public void setInputField(String input) {
		inputField.setText(input);
	}
	
	

}
